package com.fingard.dsp.bank.directbank.bankInterface;

import com.fingard.dsp.bank.reqrespobj.gateway.ReqGateway;
import com.fingard.dsp.bank.reqrespobj.unifiedorder.ReqQueryOrder;
import com.fingard.dsp.bank.reqrespobj.unifiedorder.RetAtsQueryOrder;

import java.util.HashMap;

/**
 * 网关支付
 */
public interface IGateway {
    /**
     * 网关支付提交
     *
     * @param p_req 支付请求对象
     * @return 支付响应对象
     * @throws Exception 支付提交异常
     */
    HashMap<String, String> GenGwMap(ReqGateway p_reqGateway) throws Exception;

    /**
     * 网关支付状态查询
     *
     * @param p_req 查询请求对象
     * @return 查询响应对象
     * @throws Exception 支付状态查询异常
     */
    RetAtsQueryOrder queryGWPay(ReqQueryOrder p_reqGateway) throws Exception;
}